package com.bw.zh32301.fg

import androidx.lifecycle.MutableLiveData
import com.bw.base.entity.AnnounceEntity
import com.bw.base.mvvm.BaseViewModel
import com.bw.base.net.ApiURL
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class HomeViewModel @Inject constructor(val apiURL: ApiURL):BaseViewModel() {
    val announceLiveData= MutableLiveData<AnnounceEntity>()
    fun announce(page:Int,size:Int){
        httpUtils({apiURL.announce(page,size)},announceLiveData::postValue)
    }
}